<?php

namespace app\admin\model;

class Ticket extends Base
{
    protected $autoWriteTimestamp = 'datetime';
    public function getTicket($ticketId){
        $Ticket = self::get($ticketId);
        if(!$Ticket){
            throw new ParameterException([
                'msg' => '此优惠券不存在'
            ]);
        }

        return $Ticket;
    }
}